class GiftEntity {
  int? id;
  String? name;
  String? logo;
  String? animateUrl;
  double? oldPrice;
  double? price;
  String? priceStr;
  List<int>? giftUnit;

  GiftEntity(
      {this.id,
        this.name,
        this.logo,
        this.animateUrl,
        this.oldPrice,
        this.price,
        this.priceStr,
        this.giftUnit});

  GiftEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    logo = json['logo'];
    animateUrl = json['specialEffect'];
    oldPrice = json['oldPrice'];
    price = json['price'];
    priceStr = json['priceStr'];
    giftUnit = json['giftUnit'].cast<int>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['logo'] = this.logo;
    data['specialEffect'] = this.animateUrl;
    data['oldPrice'] = this.oldPrice;
    data['price'] = this.price;
    data['priceStr'] = this.priceStr;
    data['giftUnit'] = this.giftUnit;
    return data;
  }
}